<%-- 
    Document   : validate
    Created on : Jun 4, 2012, 12:23:52 PM
    Author     : sai
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@page import ="java.sql.*" %>
<%! 
String username;
%>
<%
Class.forName("com.mysql.jdbc.Driver");
Connection con= DriverManager.getConnection("jdbc:mysql://localhost:3306/hcs","root",null);	
Statement st = con.createStatement();
st.executeQuery("select userid from `logindetails` where userid="+ username);
%>